from django.contrib import admin
from .models import BlogArticles
# Register your models here.

class BlogArcticlesAdmin(admin.ModelAdmin):
	list_display = ("title","author","publish")
	list_filter = ("publish","author")
	search_fields = ('title',"body")
	raw_id_fields = ("author",)
	date_hierarchy = "publish"
	ordering = ['publish','author']

admin.site.register(BlogArticles,BlogArcticlesAdmin)
